<?php

namespace App\Http\Resources\V1;

use Illuminate\Http\Resources\Json\JsonResource;

class UserResource extends JsonResource
{
    public function toArray($request)
    {
        return [
            'name'  => $this->name,
            'phone' => $this->contact_phone,
            'created_at'    => $this->created_at,
            'avatar'=> $this->avatar,
            'points'=> $this->points,
        ];
    }
}
